<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * TuijianForm is the model behind the form.
 */
class ZijinhuzhuanForm extends Model
{
    public $type;
    public $money;

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['type','money'], 'required'],
            [['type'], 'integer'],
            [['money'], 'number','min'=>1],

        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'type' => '转账类型',
             'money' => '转账金额',
         ];
     }
     public function attributeValues()
     {
       return [
         'type'=>[
           '3'=>'从USD账户转NEA账户',
           '4'=>'从NEA账户转USD账户',
         ],
       ];
     }
}
